package rta.dataacess;

// Generated 20/12/2012 12:44:36 by Hibernate Tools 3.4.0.Beta1

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.SEQUENCE;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Rastreadores generated by hbm2java
 */
@Entity
@Table(name = "rastreadores", schema = "public")
public class Rastreadores implements java.io.Serializable {

	private Integer id;
	private String imei;
	private String tracker;
	private String altitude;
	private String ns;
	private String we;
	private String speed;
	private Date data;
	private String hora;

	public Rastreadores() {
	}

	public Rastreadores(String imei, String tracker, String altitude,
			String ns, String we, String speed, Date data, String hora) {
		this.imei = imei;
		this.tracker = tracker;
		this.altitude = altitude;
		this.ns = ns;
		this.we = we;
		this.speed = speed;
		this.data = data;
		this.hora = hora;
	}

	@SequenceGenerator(name = "generator", sequenceName = "seq_rastreadores")
	@Id
	@GeneratedValue(strategy = SEQUENCE, generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "imei")
	public String getImei() {
		return this.imei;
	}

	public void setImei(String imei) {
		this.imei = imei;
	}

	@Column(name = "tracker")
	public String getTracker() {
		return this.tracker;
	}

	public void setTracker(String tracker) {
		this.tracker = tracker;
	}

	@Column(name = "altitude")
	public String getAltitude() {
		return this.altitude;
	}

	public void setAltitude(String altitude) {
		this.altitude = altitude;
	}

	@Column(name = "ns")
	public String getNs() {
		return this.ns;
	}

	public void setNs(String ns) {
		this.ns = ns;
	}

	@Column(name = "we")
	public String getWe() {
		return this.we;
	}

	public void setWe(String we) {
		this.we = we;
	}

	@Column(name = "speed")
	public String getSpeed() {
		return this.speed;
	}

	public void setSpeed(String speed) {
		this.speed = speed;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "data", length = 13)
	public Date getData() {
		return this.data;
	}

	public void setData(Date data) {
		this.data = data;
	}

	@Column(name = "hora")
	public String getHora() {
		return this.hora;
	}

	public void setHora(String hora) {
		this.hora = hora;
	}

}
